<script type="text/javascript" src="__MOBILE__/newdsn/js/cash/deposit.js"></script>
<script>
$(".dropdowncentermenu").css("display", "none");
$(".dropdowncentermenu2").css("display", "none");
$("#maintitle").html ("资金管理 - 充值"); 
$(".navbar-absolute-bottom").css ("display" , "none");
$(".infopanel").css ("display" , "none");
$(".navbar-brand-center").css ("margin-left" , "0px");
checkmargin ();
$(".settingtab").click(function(t){
  if ($(this).hasClass('none')) {return}
  tab = $(this).attr('data-id');
  $('.settingtab').removeClass('active');
  $('.settingContainer').hide();
  $(this).addClass('active');
  $("#"+tab).show();
});
var MIN_AMOUNT=100;
clearTimeout(timerVar);
</script>

<style>.has-navbar-top .app-body { padding-top: 72px; } .settingpanel, .active .settingpanel { height: 89px; }</style>
<div class="scrollable">
<div class="scrollable-content member-setting">

<div>

  <div class="clearfix padding20">
      <div class="fl">
        <img src="__MOBILE__/default/images/mobile/cash/icouser.jpg" width="47" height="46" alt=""></div><div class="fl blue cnbig1 marginleft10 margintop15"><?php echo $_SESSION['member_name']?>
      </div>
      <div class="pull-right">
        中心钱包 : {$info.member_money}|{$info.member_f_money}
      </div>
  </div>

    <div class="settingmenu margintop10 clearfix">
        <a href="#/payment/deposit/1" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icodeposit.jpg" width="73" height="74" alt="">
            <p class="margintop10">充值</p>
            <div class="settingarrow"></div>
        </a>
        <a href="#/payment/withdrawal" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icowithdrawal.jpg" width="73" height="74" alt="">
            <p class="margintop10">提款</p>
         
        </a>
        <a href="#/payment/transfer" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icobalance.jpg" width="73" height="74" alt="">
            <p class="margintop10">交易历史</p>
            
        </a>
    </div>
    <div class="clearfix">
  
    </div>
  
    <div style="" class="settingContainer subcontent" id="p_1">
	  <div class="padding20">
			<form action="/index.php/Payment/deposit" target="_blank" id="form_1" method="post" onsubmit="return doDeposit(this,-1);"enctype="multipart/form-data">
			
			
	 <span class="validation">
	<img src="__MOBILE__/default/images/cash/deposit/iconwarning.jpg" width="17" height="15" alt=""> <span class="smalltxt red">请输入充值金额,最低金额100</span></span>
	<br>
            <div class="textbox clearfix">
              <div class="col1 fl">充值金额:</div>
                <div class="col2 fl"><input type="text" name="amount" class="textfield1" placeholder="(请填写)"></div>
            </div>

		  <div class="textbox clearfix">
            <div class="col1 fl">银行种类：</div>
              <div class="col2a fl">
                <i class="fa fa-angle-down"></i>
                	<select name="payId" id="cardlist" class="banklist dropdown bankradiobtn2">
					<foreach name="payment" item="vo">
					<option value="{$vo.code}" data-value="{$vo.id}">{$vo.name}</option>
									</foreach>
	  				
                	</select>
              </div>
          </div>
		  <div class="textbox clearfix">
            <div class="col1 fl">账号信息：</div>
					<foreach name="payment" item="vo" key="k">
              <div class="col2a fl"id="bank_id" style="<?php if($k!=0){?>display:none<?php }?>">
				{$vo.code}
              </div>
			  	</foreach>
          </div>
		  <!--  <div class="textbox clearfix">
              <div class="col1 fl">凭&nbsp;&nbsp;证：</div>
                <div class="col2 fl"><input type="file" name="screenshot"id="file" class="textfield1"></div>
            </div>
-->

			 <span class="smalltxt red"> 温馨提示：转账金额带小数点，方便管理员对账。<br>比如：100.08元。</span>
	        
			
			 <div class="textbox clearfix">
              <div class="col1 fl">备注：</div>
                <div class="col2 fl">
				<textarea name="remark" id="remark"></textarea>
                                   
				</div>
            </div>
			<div class="gap20"></div>
	        <div class="col-xs-12">
	        	<div class="submitbtn cnbig btnradius" onclick="$(&quot;#form_1&quot;).submit()">提交</div>
	        </div> 
	  </form></div>	
	</div>
	

    
</div>

</div>
</div>
	<foreach name="payment" item="vo" key="k">
	  <?php if($vo['qr_code']!=''){?>
<div id="qrcode-box<?php echo $vo['id']?>" class="qrcode-box" style="<?php if($k!=0){?>display:none;<?php }?>position:fixed; top:0; right:0; bottom:0; left:0; background-color:rgba(0,0,0,.85);"><div style="position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); width:80%; text-align:center; background-color:#fff; padding:30px 30px 15px; border-radius:5px;"><p style="font-size:18px; line-height:1; padding-bottom:20px; color:333; font-weight:bold;">二维码支付</p><img src="<?php echo $vo['qr_code']?>" style="width:180px; height:180px;"><p style="font-size:16px; line-height:1; padding-top:20px;">请长按保存后<br>识别二维码付款</p><a href="javascript:;" onclick="$(this).parents('#qrcode-box<?php echo $vo['id']?>').hide();" style="position:absolute; top:-16px; right:-16px; width:32px; height:32px; background:#f00; border-radius:50%; overflow:hidden; line-height:32px; text-align:center; font-size:24px;">×</a></div></div>
 	 <?php }?> 
	</foreach>
<script>
var hash = window.location.hash;
hash =  hash.split('/')[3];
$('.settingtab:nth-child('+hash+')').click();
</script>


 <script>
				  $(function(){
				  
				  $("#cardlist").change(function(){
					var id=$("#cardlist option:selected").attr("value");
					var show_id=$("#cardlist option:selected").attr("data-value");
					$("#bank_id").html(id);
						$(".qrcode-box").hide();
					$("#qrcode-box"+show_id).show();
				
						})
					
				  })
				  </script>